<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <title>Document</title>
    <style>
        section{
            
            height: 150px;
            /* background-color: yellow; */
            margin: 100px auto;        
            display: flex;   /* 父亲添加伸缩布局 */
            min-width: 320px;
            max-width: 1280px;
            flex-direction: row-reverse;
        }
        section div{
            flex: 1;   /* 孩子的份数 */ 
            height: 100%;
            
           
        }
        section div:nth-child(1){
            background-color: pink;
            

        }
        section div:nth-child(2){
            background-color: blue;
            
        }
        section div:nth-child(3){
            background-color: purple;
            
        }
        
    </style>
</head>
<body>
    <section>
        <div>1</div>
        <div>2</div>
        <div>3</div>
        
    </section>
</body>
</html>